<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@ page import="edu.lhh.model.newstype"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link href="css/bootstrap.css" rel="stylesheet" media="screen">
  <link href="js/jquery-2.2.4.min.js" rel="stylesheet" media="screen">
<title>Insert title here</title>
</head>
<%
Object obj = request.getAttribute("type");
newstype type= null;
if(obj != null){
	type = (newstype)obj;
}
/*else {
	type = new newstype("","","","");
}*/



%>
<br><br><br><br><br><br><br><br>
<form action="./newstype" method="post">
<div class = "container">
		<div class="row">
			<div class = "col-xs-3"></div>
			<div class = "col-xs-4">
<input type="hidden" name="opt" value="<%=request.getAttribute("opt")%>">
<input type="hidden" name="index" value="<%=type.getIndex()%>">

学号<input type="text" class="form-control" name="id" value=<%= type.getId()%>><br>
姓名<input type="text" class="form-control" name="name" value=<%= type.getName() %>><br>
性别<input type="text" class="form-control" name="sex" value=<%= type.getSex() %>><br>
旷课数<input type="text" class="form-control" name="age" value=<%= type.getAge() %>><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="确定" class="btn btn-primary ">&nbsp;&nbsp;&nbsp;<input type="reset" value="取消更改" class="btn btn-warning ">
			</div>
			<div class = "col-xs-5"></div>
		</div>
	</div>
</form>
</html>